package o;

import android.app.Activity;
import android.content.Context;
import android.os.Build;
import com.huawei.hms.framework.network.restclient.hianalytics.HianalyticsData;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.DnsConfig;
import com.huawei.hms.support.api.entity.pay.HwPayConstant;
import java.util.Map;
import java.util.TimeZone;

public abstract class azz {
    public void ˏ(Context context, Map<String, String> map) {
        map.put("serviceType", ˊ(context));
        map.put("clientPackage", ॱ());
        map.put("thirdId", ˎ());
        map.put("terminalType", ˏ());
        map.put("clientVersionCode", ˊ());
        map.put("clientDeviceType", String.valueOf(ʼ()));
        map.put("locale", ᐝ());
        map.put("timeZone", ʻ());
        map.put(HwPayConstant.KEY_SIGN, ˋ());
        map.put("cno", ʽ());
        map.put(HianalyticsData.DOMAIN, ॱॱ());
    }

    public String ˊ(Context context) {
        int ˎ;
        if (context instanceof Activity) {
            ˎ = dgm.ˎ((Activity) context);
        } else {
            ˎ = ccz.ॱ();
        }
        return String.valueOf(ˎ);
    }

    public String ˋ() {
        String str = "";
        HcridSession ˋ = HcridSession.ˋ();
        if (ˋ != null) {
            return ˋ.ˊ();
        }
        return str;
    }

    private String ॱ() {
        return ContentManager.getInstant().getContext().getPackageName();
    }

    private String ˎ() {
        String str = "";
        epr ˎ = epr.ˎ();
        if (ˎ != null) {
            return ˎ.ˏ();
        }
        return str;
    }

    private String ˏ() {
        return Build.MODEL;
    }

    private String ˊ() {
        int i;
        try {
            Context ˋ = ContentManager.getInstant().getContext();
            i = ˋ.getPackageManager().getPackageInfo(ˋ.getPackageName(), DnsConfig.MAX_CACHE_ENTRIES).versionCode;
        } catch (Throwable e) {
            azh.ˏ.ˊ("BaseWapParamCreator", "getVersionCode error.", e);
            i = 0;
        }
        return String.valueOf(i);
    }

    private int ʼ() {
        return epr.ˎ().ʼ();
    }

    private String ᐝ() {
        return doi.ॱ();
    }

    private String ʻ() {
        return TimeZone.getDefault().getID();
    }

    private String ʽ() {
        return epl.ॱ().ˋ();
    }

    private String ॱॱ() {
        return aze.ॱ();
    }
}
